package twitter

import (
	"labix.org/v2/mgo/bson"
	"time"
)

type TwiiterType int

const (
	TwiiterTypeMessage = iota
	TwiiterTypeImage
	TwiiterTypeHealth
	TwiiterTypeFirstTimeDo
)

/*  这类事情 完全由客户端定义 服务端只收取一个字符串
const (
	FirstTimeThing_Eat        = "吃饭"
	FirstTimeThing_CallMother = "叫妈妈"
	FirstTimeThing_CallFather = "叫爸爸"
	FirstTimeThing_Swimming   = "游泳"
	FirstTimeThing_TakerCar   = "坐车"
	FirstTimeThing_Cry        = "哭"
)
*/

type Image struct {
	Url    string
	Width  int
	Height int
	Size   int64
}

type Message string

type Health struct {
	Height int // cm
	Weight int // k
}

type LeverStar int

const (
	OneStar = iota
	TwoStar
	ThreeStar
	FourStar
	FiveStar
)

type FirstTimeThing struct {
	Thing string
	Level LeverStar
}

type Twiiter struct {
	Type         TwiiterType
	Image        Image
	Message      Message
	Health       Health
	FirstThing   FirstTimeThing
	CreateUser   interface{}
	CreateUserId string
	Baby         interface{}
	BabyId       string

	CreateTime time.Time
	Id         bson.ObjectId `bson:"_id"`
}
